﻿using dk.Helper.Base;
using dk.Helper.Base.Core;
using NUnit.Framework;

namespace dk.Helper.Test
{
    [TestFixture]
    public class GroupTypeTest
    {
        private IGroupType groupType;

        [SetUp]
        public void SetUp()
        {
            groupType = new GroupType();
        }

        [Test]
        public void Order_Initial()
        {
            Assert.AreEqual(0, groupType.Order);
        }

        [Test]
        public void Order_Set()
        {
            groupType.Order = 1;
            Assert.AreEqual(1, groupType.Order);
        }

        [Test]
        public void Command_Initial()
        {
            Assert.AreEqual(Commands.Attack, groupType.Command);
        }

        [Test]
        public void Command_Set()
        {
            groupType.Command = Commands.Support;
            Assert.AreEqual(Commands.Support, groupType.Command);
        }
    }
}
